package com.tom.ssm.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tom.ssm.dao.UserDao;
import com.tom.ssm.entity.User;
import com.tom.ssm.service.UserService;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());
	@Autowired
	private UserDao userDao;
	
	@Override
	public List<User> getUserList(int offset, int limit) {
		//先去缓存中取
		List<User> result = userDao.queryAll(offset, limit);
		return result;
	}
	
}
